package F01;

import java.io.File;
import java.io.IOException;

public class Test2 {
    public static void main(String[] args) throws IOException {

        File f1=new File("D:/01file");

        //System.out.println(f1.mkdir());
        File f2=new File("d:/01file/1/2/3/4");
        f2.mkdirs();
        //可以创建多层目录

        File f3=new File("d:/01file/1.txt");
        System.out.println(f3.createNewFile());
    }
}
